<?php

namespace app\admin\model;

use app\common\model\TimeModel;

class BuddhaArticle extends TimeModel
{

    protected $name = "buddha_article";

    protected $deleteTime = "delete_time";

    
    
    public function getStatusList()
    {
        return ['0'=>'禁用','1'=>'启用',];
    }

    protected function getTypeIdAttr($value){
        return (new BuddhaBuddha())->getBuddhaByListId($value);
    }
    protected function getTagAttr($value){
        return (new BuddhaTag())->getBaseById($value);
    }
}